<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base th:href="@{http://localhost:8081/}">
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
</head>
<body>
<a th:href="@{teacher/add}" class="btn btn-default">添加</a>
    <table class="table table-striped">
        <tr>
            <td>序号</td>
            <td>姓名</td>
            <td>手机</td>
            <td>生日</td>
            <td>操作</td>
        </tr>
        <tr th:each="messages:${teachers}">
            <td th:text="${messages.getId()}"></td>
            <td th:text="${messages.getName()}"></td>
            <td th:text="${messages.getPhone()}"></td>
            <td th:text="${messages.getBirthday()}"></td>
            <td><a th:href="@{teacher/delete(id=${messages.getId()})}" class="btn btn-default">删除</a></td>
            <td><a th:href="@{teacher/find(id=${messages.getId()})}" class="btn btn-default">修改</a></td>
        </tr>
    </table>
</body>
</html>